package com.huawei.esdk.tp.cxf.enumgen;

public abstract class PresentationTypeMapping {

    public final static int PRESENTATION = 0;
    public final static int LIVE = 1;
    public final static int NOT_SUPPORT = 2;
    
    public final static int MIN = 0;
    public final static int MAX = 2;

	public static Integer enum2Int(PresentationType videoFormat) {
	    if (null == videoFormat)
        {
            return null;
        }
		switch (videoFormat) {
		case PRESENTATION: {
			return PRESENTATION;
		}
		case LIVE: {
			return LIVE;
		}
		case NOT_SUPPORT: {
			return NOT_SUPPORT;
		}
		default: {
			return null;
		}
		}
	}

	public static PresentationType int2Enum(Integer num) {
		if(null==num){
			return null;
		}
		switch (num) {
		case PRESENTATION: {
			return PresentationType.PRESENTATION;
		}
		case LIVE: {
			return PresentationType.LIVE;
		}
		case NOT_SUPPORT: {
			return PresentationType.NOT_SUPPORT;
		}
		default: {
			return null;
		}
		}
	}


}
